#ifndef _CROSSENGINE_GAMEPLAYER_H_
#define _CROSSENGINE_GAMEPLAYER_H_
#include "container.h"
#include "crossobject.h"

class Client;
class NetPacket;

class GamePlayer:public CrossObject
{
    typedef CrossObject base;
public:
	~GamePlayer();
    GamePlayer();
    virtual void OnClientClose(bool passiveClose);
    void SendMsg(NetPacket& pack);
    void SetClient(Client* client);
    Client* GetClient(){return _client;}
private:
    Client* _client;
};

#endif//_CROSSENGINE_GAMEPLAYER_H_
